Skip to content

[DTOSS-12686] - Change Arc-enabled server naming convention to include hospital name and ODS code - #99

Merged
josielsouzanordcloud merged 1 commit into
mainfrom
DTOSS-12686-arc-resource-name-hospital-ods
Apr 22, 2026
Merged

[DTOSS-12686] - Change Arc-enabled server naming convention to include hospital name and ODS code#99
josielsouzanordcloud merged 1 commit into
mainfrom
DTOSS-12686-arc-resource-name-hospital-ods

Conversation

@josielsouzanordcloud

Copy link
Copy Markdown
Contributor

Summary

  • Remove freeform $SiteCode and $PacsVendor parameters from arc-setup.ps1; replace with structured $ODSCode and $Instance inputs
  • Build Arc resource name internally as gw-<SiteName>-<ODSCode>-<Instance> (all lowercase, max 54 chars), e.g. gw-hull-university-teaching-hospitals-nhs-trust-rwa-01
  • Remove SiteCode Run Command parameter from gateway-test-vm — script falls back to the VM hostname (mbsgw-<env>), no re-onboarding of test VMs needed
  • Update relay.tf and outputs.tf comments to remove SiteCode references
  • Update onboarding runbook: new naming convention explanation, Hull/RWA example, corrected resource group prefix (manbgwmbsgw), script link, PowerShell execution policy guidance

Why

gw-rwa-01 is not human-readable in the Azure portal or ADO pipeline logs. The new convention (gw-hull-university-teaching-hospitals-nhs-trust-rwa-01) identifies the hospital at a glance. Building the name from structured inputs enforces the convention at the script level rather than relying on the caller to format it
correctly.

Test plan

  • Run arc-setup.ps1 with SiteName, ODSCode, and Instance supplied — verify Arc machine appears in the portal with the expected name and tags (ODSCode, Instance, SiteName, NHSRegion, DeploymentRing, SiteType)
  • Run arc-setup.ps1 without SiteName/ODSCode — verify script falls back to hostname with no error
  • Run the Arc Infrastructure pipeline — verify HC is created as hc-gw-<name>
  • Verify test VM (mbsgw-review) is unaffected — no re-onboarding required

Jira link

DTOSS-12686

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

…ospital name and ODS code

  Arc resource names are now built from structured inputs rather than a
  freeform SiteCode, making them human-readable in the Azure portal and
  ADO pipeline logs.

  Changes:
  - Remove  and  parameters from arc-setup.ps1
  - Add  and  parameters; build resource name internally
    as gw-<SiteName>-<ODSCode>-<Instance> (all lowercase, max 54 chars)
  - Remove SiteCode Run Command parameter from gateway-test-vm — script
    falls back to the VM hostname (mbsgw-<env>), no re-onboarding needed
  - Update relay.tf and outputs.tf comments to remove SiteCode references
  - Update onboarding runbook: new parameters table, Hull/RWA example,
    fix resource group name prefix (manbgw → mbsgw), add script link,
    add PowerShell execution policy guidance and troubleshooting steps
@josielsouzanordcloud
josielsouzanordcloud merged commit 219b95d into main Apr 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants